package com.ddtech.business.practice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ddtech.business.practice.entity.PracticeVrRecord;
import com.ddtech.business.practice.query.PracticeVrRecordQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @version v1.0
 * @ClassName:PracticeVrRecordMapper description：
 * @author:wei_zhang(xiao)
 * @date: 2024-07-16 22:36
 */
@Mapper
public interface PracticeVrRecordMapper extends BaseMapper<PracticeVrRecord> {


    /***
     * description: 查询训练记录
     * @param:  * @param page
     * @param practiceVrRecordQuery
     * @date: 2024-07-17
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<java.util.Map<java.lang.String,java.lang.Object>>
     * @version v1.0
     * @author:wei_zhang(xiao)
     */
    IPage<Map<String, Object>> pageList(IPage page, @Param("practiceVrRecordQuery") PracticeVrRecordQuery practiceVrRecordQuery);


    /***
     * description: 训练回放记录查询，学生查询自己
     * @param:  * @param page
     * @param practiceVrRecordQuery
     * @date: 2024-07-17
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<java.util.Map<java.lang.String,java.lang.Object>>
     * @version v1.0
     * @author:wei_zhang(xiao)
     */
    IPage<Map<String, Object>> pageListCodeByAccount(IPage page, @Param("practiceVrRecordQuery") PracticeVrRecordQuery practiceVrRecordQuery);

    /***
     * description: 训练回放记录查询，管理员、老师全部查询
     * @param:  * @param page
     * @param practiceVrRecordQuery
     * @date: 2024-07-17
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<java.util.Map<java.lang.String,java.lang.Object>>
     * @version v1.0
     * @author:wei_zhang(xiao)
     */
    IPage<Map<String, Object>> pageListCode(IPage page, @Param("practiceVrRecordQuery") PracticeVrRecordQuery practiceVrRecordQuery);
}
